<html>
<?php include 'inc/#head.php';?>
<link href="<?php echo $this->config->item('static_url'); ?>css/manager/globle_search.css" rel="stylesheet" type="text/css" id="cssGlobe">
<link href="<?php echo $this->config->item('static_url'); ?>css/manager/skin_domain.css" id="lnkSkin" type="text/css" rel="stylesheet">
<script>
function checkdata() {
}
</script>
</head>
<body class="All_C_Page Inbox">
<?php echo form_open('manager/channel',  array('name' => 'form', 'id' => 'oFormMessage','onSubmit'=>'return checkdata();')); ?>
       	<div class="ContentWp">
        	<div class="ContentThemeWp">
             <div class="Ibx_Main_Wp">
             	<table id="oTableHead" class="Ibx_gTable F2Img Ibx_gTable_TT">
	<tbody>
		<tr>
			<th class="Ibx_Th_F"></th>
	  </tr>
  <tbody>
</table>
<div class="gToolbar gTbrTop">
	<input onClick="location.href='membersites.html?action=managersiteinfo'" type="button" class="Btn BtnNml ImpBtn Btn-Yimpt" value='管理网站资料' />
    <input onClick="location.href='membersites.html?action=managersitestyle'" type="button" class="Btn BtnNml" value='选择网站模板' />
    <input onClick="location.href='membersites.html?action=managersitechannelstyle'" type="button" class="Btn BtnNml" value='管理网站样式' />
    <input onClick="location.href='membersites.html?action=managersitechannel'" type="button" class="Btn BtnNml" value='管理网站频道' />
    <input onClick="location.href='membersites.html?action=managerchannelcontents'" type="button" class="Btn BtnNml" value='管理网站内容' />
    <input onClick="location.href='membersites.html?action=managercorp'" type="button" class="Btn BtnNml" value='管理公司资料' />
    <div class="Extra">
    	<span class="Txt">
        	<span class="Unable"></span><span class="Unable"></span>
            <span class="Unable"></span><span class="Unable"></span>
        </span>
     </div>
</div>             <div class="Ibx_Lst_dWp dWpOpen">
           	   <h4 class="Ibx_Lst_dTT" action="list"><span class="Txt"><span >网站资料</span></span></h4>
                <table cellpadding="15" cellspacing="5" style="border-spacing:15px; border-collapse:separate; width:700px;">
                <tr><td width="29"></td>
                  <td width="98">网站名称</td>
                  <td><input name="site_name" type="text" class="Ipt" id="site_name"value="我的万维网" /></td>
                  <td colspan="2">网站logo 
                    <input name="site_logo" type="text" class="Ipt" id="site_logo"value="" /> <input type="button" id="image" value="选择图片" /></td>
                  </tr>
                 <tr><td width="29"></td>
                  <td width="98">公司名称</td>
                  <td><input name="company_name" type="text" class="Ipt" id="company_name"value="我的万维网" /></td>
                  <td colspan="2"></td>
                  </tr> 
                <tr>
                  <td></td>
                  <td>网站域名 </td>
                  <td><input name="site_url" type="text" class="Ipt" id="site_url"value="www.5388.co" /></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td></td>
                  <td>二级域名</td>
                  <td><input name="site_sub_url" type="text" class="Ipt" id="site_sub_url" value="www">
                  .5388.co</td>
                  <td><input type="checkbox" name="site_sub_url_edit" id="site_sub_url_edit" value="1">
                  </td>
                  <td><label for="site_sub_url_edit">修改二级域名</label></td>
                </tr>
                <tr>
                  <td></td>
                  <td>网站描述</td>
                  <td><input name="site_desc" type="text" class="Ipt" id="site_desc"value="我的万维网" maxlength="200"></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td></td>
                  <td>网站关键字</td>
                  <td><input name="site_keyword" type="text" class="Ipt" id="site_keyword"value="我的万维网" maxlength="200"></td>
                  <td></td>
                  <td></td>
                </tr>
                <tr>
                  <td colspan="5" style="height:2px;"><div style="border:1px dotted #999;"></div></td>
                  </tr>
                <tr>
                  <td></td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>显示在网站文字(可以是其它国的语言 如英语)</td>
                </tr>
                <tr>
                  <td></td>
                  <td>公司地址</td>
                  <td width="200"><input name="site_address" type="text" class="Ipt" id="site_icp"value="北京东直门"></td>
                  <td width="5">&nbsp;</td>
                  <td><input name="site_address_lan" type="text" class="Ipt" id="site_icp_lan"value="公司地址"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>网站ICP</td>
                  <td><input name="site_icp" type="text" class="Ipt" id="site_icp"value="京IPC备100001"></td>
                  <td width="5">&nbsp;</td>
                  <td><input name="site_icp_lan" type="text" class="Ipt" id="site_icp_lan"value="网站ICP"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>联系电话</td>
                  <td><input name="site_phone" type="text" class="Ipt" id="site_phone"value="15677899965"></td>
                  <td></td>
                  <td><input name="site_phone_lan" type="text" class="Ipt" id="site_phone_lan"value="联系电话"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>移动电话</td>
                  <td><input name="site_mobile" type="text" class="Ipt" id="site_phone"value="18666282292"></td>
                  <td></td>
                  <td><input name="site_mobile_lan" type="text" class="Ipt" id="site_mobile_lan"value="移动电话"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>公司传真</td>
                  <td><input type="text" class="Ipt"value="" name="site_fax"></td>
                  <td></td>
                  <td><input name="site_fax_lan" type="text" class="Ipt" id="site_fax_lan"value="联系人"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>联系人</td>
                  <td><input type="text" class="Ipt"value="" name="site_contact"></td>
                  <td></td>
                  <td><input name="site_contact_lan" type="text" class="Ipt" id="site_contact_lan"value="公司传真"></td>
                </tr>

                <tr>
                  <td></td>
                  <td>电子邮件</td>
                  <td><input type="text" class="Ipt"value="" name="site_email"></td>
                  <td>&nbsp;</td>
                  <td><input name="site_email_lan" type="text" class="Ipt" id="site_email_lan"value="电子邮件"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>QQ</td>
                  <td><input type="text" class="Ipt"value="" name="qq"></td>
                  <td>&nbsp;</td>
                  <td><input name="qq_lan" type="text" class="Ipt" id="qq_lan"value="QQ"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>msn</td>
                  <td><input type="text" class="Ipt"value="" name="msn"></td>
                  <td>&nbsp;</td>
                  <td><input name="msn_lan" type="text" class="Ipt" id="msn_lan"value="msn"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>微博</td>
                  <td><input name="weibo" type="text" class="Ipt" id="weibo"value="http://weibo.com"></td>
                  <td>&nbsp;</td>
                  <td><input name="weibo_lan" type="text" class="Ipt" id="weibo_lan"value="微博"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>更多</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="more_lan" type="text" class="Ipt" id="more_lan"value="更多"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>公司信息</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="company_lan" type="text" class="Ipt" id="company_lan"value="公司信息"></td>
                </tr>
                
                <tr>
                  <td></td>
                  <td>加入收藏夹</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="add_favers_lan" type="text" class="Ipt" id="add_favers_lan"value="加入收藏夹"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>设为首页</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="add_homepage" type="text" class="Ipt" id="company_lan"value="设为首页"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>价格</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="price_lan" type="text" class="Ipt" id="price_lan"value="价格"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：姓名</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_name_lan" type="text" class="Ipt" id="write_name_lan"value="姓名"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：email</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_email_lan" type="text" class="Ipt" id="write_email_lan"value="email"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：联系电话</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_phone_lan" type="text" class="Ipt" id="write_phone_lan"value="联系电话"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：标题</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_title_lan" type="text" class="Ipt" id="write_title_lan"value="标题"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：内容</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_contents_lan" type="text" class="Ipt" id="write_contents_lan"value="内容"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>留言：留言成功</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="write_success_lan" type="text" class="Ipt" id="write_success_lan"value="留言成功"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>提示：请您填上</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="error_please_lan" type="text" class="Ipt" id="error_please_lan"value="请您填上"></td>
                </tr>
                
                
                <tr>
                  <td></td>
                  <td>确定递交</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="sumbit_lan" type="text" class="Ipt" id="sumbit_lan"value="确定递交"></td>
                </tr>
                <tr>
                  <td></td>
                  <td>友情连接</td>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="link_lan" type="text" class="Ipt" id="link_lan"value="友情连接"></td>
                </tr>
                <tr>
                  <td colspan="5" style="height:2px;"><div style="border:1px dotted #999;"></div></td>
                  </tr>
                <tr>
                  <td></td>
                  <td>友情连接</td>
                  <td colspan="3"><label>例子：网站名称|网站URL地址|图片地址(一行1个友情连接)<br>　　　彼此软件|www.bicisoft.com|http://www.bicisoft.com/images/logo.gif<br>　　　PHPShop|www.phpshop.cn|http://www.phpshop.cn/images/logo.gif</label><br><textarea name="link" cols="70" rows="5" class=""></textarea></td>
                  </tr>
                <tr>
                <tr>
                  <td></td>
                  <td>第三方代码</td>
                  <td colspan="3"><textarea name="ext_js" cols="70" rows="5" class=""></textarea></td>
                  </tr>
                <tr>
                  <td></td>
                  <td>&nbsp;</td>
                  <td><input name="" type="submit" value="递交网站资料" class="Btn BtnNml ImpBtn"></td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                </table>
             </div>
             <h4 class="Ibx_Lst_bExtra" id="oH4Check"></h4>
             <div class="gToolbar gTbrTop">
                <div class="Extra">
                </div>
             </div>
              </div>
          </div>
        </div>
    <?php echo form_close();?>
<script language="javascript">
function channelEdit(title, en_title, display, out_url, cid) {
	var checked = '';
	if(display == 1) checked = 'checked';
	var html = "";
	html += '类别名称：<input id="title" name="" value="'+title+'"  type="text" class="Ipt" />　'
	     + '英文名称：<input id="en_title" name="" value="'+en_title+'"  type="text" class="Ipt" /><br>'
	     + '受否显示：<input id="display" name="" '+checked+' value="1" type="checkbox" class="Ipt" />　'
	     + '外部URL：<input id="out_url" name="" value="'+out_url+'"  type="text" class="Ipt" /><br>'
	     + '<center><input class="Btn BtnNml ImpBtn" name="" value="确定修改" type="button"  onclick="channelEditSend('+cid+')" /> '
	     +'<input class="Btn BtnNml ImpBtn" name="" value="取消修改" type="button" onclick="channelEditClode()" /></center>';
	
	$(".loadingWord").css({'height':'auto'});	
	$('#error_msg').html(html);
	$(".overlay").css({'display':'block','opacity':'0.8'});		
	$(".showbox").stop(true).animate({'margin-top':'300px','opacity':'1'},200);
	
}
function channelEditClode() {
	$(".showbox").stop(true).animate({'margin-top':'-500px','opacity':'0'},400);
	$(".overlay").css({'display':'none','opacity':'0'});	
}
function channelEditSend(cid) {
	var url = "<?php echo $this->config->base_url(); ?>manager/channel";
	var display = 0;
	if($("#display").attr("checked") == true) {display = 1;}
	var __HASH_ = $("input[name='<?php echo $this->config->item('csrf_token_name'); ?>']").val();
	$.post(url, { "__H": "editChannel", "title":$('#title').val(), "en_title":$('#en_title').val(), "out_url":$('#out_url').val(), "display":display, "<?php echo $this->config->item('csrf_token_name'); ?>":__HASH_, "cid":cid },
		function(data){
			if(data.success == 1) {
				showMsg('修改类别成功！正在刷新页面，请稍后.....');
				setTimeout(function(){window.location = url;}, 1500);
			}
	}, "json");
}
</script>
<?php include 'inc/#alert.php';?>
</body>
</html>